<if condition="C('mydb')">

	document.write('<ul class="layui-nav header-nav" style="margin-left:0;padding-left:0">');
	document.write('	<li class="layui-nav-item" style="margin-left:0;">');
	document.write('		<a href="{{WEBURL}}/user/">控制台<span class="layui-badge sms">{{C('MYDB.message_num')}}</span></a>');
	document.write('	</li>');
	document.write('	<li class="layui-nav-item" style="margin-left: 30px;color:red">');
	document.write('		<img src="{{C('mydb.thumb')}}" class="layui-nav-img">{{C('MYDB.username')}}');
	document.write('	</li>');
	document.write('	<li class="layui-nav-item" >');
	document.write('		<a href="{{WEBURL}}/login/index/Login_Out{{C('HTML')}}">退出登陆</a>');
	document.write('	</li>');
	document.write('</ul>');
<else>
	<if condition="\\temmoku\\lib\\cookie::get('qq_user_name')">
	document.write('<ul class="layui-nav header-nav" style="margin-left:0;padding-left:0">');
	document.write('	<li class="layui-nav-item" style="margin-left: 30px;color:red">');
	document.write('		<img src="{{\\temmoku\\lib\\cookie::get('qq_user_pic')}}" class="layui-nav-img">{{\\temmoku\\lib\\cookie::get('qq_user_name')}}');
	document.write('	</li>');
	document.write('	<li class="layui-nav-item" style="margin-left:0;">');
	document.write('		<a href="{{WEBURL}}/login/index/vendor/name/qq/c/index/m/bind{{C('HTML')}}">绑定账号</a>');
	document.write('	</li>');
	document.write('	<li class="layui-nav-item" >');
	document.write('		<a href="{{WEBURL}}/login/index/vendor/name/qq/c/index/m/login_out{{C('HTML')}}">退出登陆</a>');
	document.write('	</li>');
	document.write('</ul>');
	<else>
	document.write('<a href="javascript:void(0)" lay-submit="" lay-filter="toplogin">登录</a>');
	document.write('	<a href="{{WEBURL}}/login/index/reg{{C('html')}}">注册</a>');
	
	<foreach array="C('MORE_LOGIN_LIST')" f='true'>
		<php>
			if($row['is_open_window']==0){
				$loginurl=$row['loginurl'];
				$onchick="";
				$target='target="_blank"';
			}else{
				$target='';
				$loginurl='javascript:';
				$onchick='onclick="'.$key.'()"';
			}
		</php>
							
		<if condition="$row[thumb]">
	document.write('			<a title="{{$row[name]}}" {{$target}} href="{{$loginurl}}" {{$onchick}}><img alt="{{$row[name]}}" src="{{$row[thumb]}}" /></a>');
		<else>
	document.write('			<a href="{{$loginurl}}" {{$target}} {{$onchick}}>{{$row[name]}}</a>');
		</if>
							
		<if condition="$row['is_open_window']==1">

			function {{$key}}(){
				window.open("{{$row['loginurl']}}","{{$key}}", "width=690,height=460,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
			}

		</if>
							
	</foreach>

	</if>
</if>
